
<?php get_header(); ?>
<div id="content">
	<div class="pagetitle">
		<h2>Search Results</h2>
	</div>

<?php if (have_posts()) : ?>

	<?php while (have_posts()) : the_post(); ?>

	<div class="post" id="post-<?php the_ID(); ?>">
		<div class="title">
			<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
			<p>Written by <?php the_author() ?> on <?php the_time('F j, Y'); ?>.</p>
		</div>
		<div class="entry">
			<?php the_content('[More]'); ?>
		</div>
	</div>

	<?php endwhile; ?>

<?php else : ?>
	
	<div class="errormsg">
		<p>Sorry, but you are looking for something that isn't here.</p>
	</div>
		
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>